#ifndef _MY_WEB_SERVER_H
#define _MY_WEB_SERVER_H

#include <ESP8266WebServer.h>

#define WEBSERVER_CYCLE 100

enum class WEBSERVER_STATUS : char
{
    INIT = 0,
    RUNNING
};

class MyWebServer
{
private:
    ESP8266WebServer* _server;
    WEBSERVER_STATUS  _status;

private:
    void init(void);
    void req_404(void);
    void req_index(void);
    void req_config(void);

public:
    MyWebServer(void);
    ~MyWebServer(void);

public:
    void stateMachine(void);
};

#endif //_MY_WEB_SERVER_H